//
// Created by sri01 on 2025/11/6.
//

#include "bsp_dac.h"

void BSP_DAC_Init(uint32_t DAC_Offset)
{
    // 初始化DAC
    HAL_DAC_SetValue(&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, DAC_Offset);
    HAL_DAC_Start(&hdac1, DAC_CHANNEL_1);
}
